gui_warlock = {
	name = "Warlock",
	handler = ccR_GUI,
	type = "group",
        args = {
		tblWarlock_Affliction = {
            name = "Affliction",
            type = "group",
            childGroups = "tree",
            order = 1,
            args = {
                Affliction = {
                order = 1,
                type = "header",
                name = "Affliction",
                },
            },
        },
        tblWarlock_Demonology = {
            name = "Demonology",
            type = "group",
            childGroups = "tree",
            order = 2,
            args = {
            },
        },
        tblWarlock_Destruction = {
            name = "Destruction",
            type = "group",
            childGroups = "tree",
            order = 3,
            args = {
               tblWarlock_3_AutoAoEHeader = {
                    order = 0,
                    type = "header",
                    name = "Automatic AoE Settings",
                },
                tblWarlock_3_SingleTargetCount = {
                    order = 1,
                    type = "input",
                    name = "Single Target Count",
                    desc = "* Automatic AoE *\n\n Maximum number of targets within 12 yards to use Single Target Rotation.",
                    set = function(info, value) ccRS.Warlock_3_SingleTargetCount = tonumber(value) end,
                    get = function(info) return tostring(ccRS.Warlock_3_SingleTargetCount) end,
                },
                tblWarlock_3_AoECount = {
                    order = 2,
                    type = "input",
                    name = "AoE Target Count",
                    desc = "* Automatic AoE *\n\n Minimum number of targets within 12 yards to use AoE Rotation.",
                    set = function(info, value) ccRS.Warlock_3_AoECount = tonumber(value) end,
                    get = function(info) return tostring(ccRS.Warlock_3_AoECount) end,
                },
                tblWarlock_3_Header9 = {
                    order = 9,
                    type = "header",
                    name = "",
                },
                tblWarlock_3_CurseOfEnfeeblement = {
		            order = 10,
		            type = "toggle",
		            name = "Curse of Enfeeblement",
                    desc = "Apply Curse of Enfeeblement if missing.",
                    set = function(info, value) ccRS.Warlock_3_UseCurseOfEnfeeblement = value end,
                    get = function(info) return ccRS.Warlock_3_UseCurseOfEnfeeblement end,
	            },
                tblWarlock_3_CurseoftheElements = {
		            order = 12,
		            type = "toggle",
		            name = "Curse of the Elements",
                    desc = "Apply Curse of the Elements if missing.",
                    set = function(info, value) ccRS.Warlock_3_UseCurseOfTheElements = value end,
                    get = function(info) return ccRS.Warlock_3_UseCurseOfTheElements end,
	            },
                tblWarlock_3_ImmolateAll = {
		            order = 20,
		            type = "toggle",
		            name = "Immolate All",
                    desc = "Cast Immolate on all targets.",
                    set = function(info, value) ccRS.Warlock_3_ImmolateAll = value end,
                    get = function(info) return ccRS.Warlock_3_ImmolateAll end,
	            },
                tblWarlock_3_BlankSpace29 = {
                    order = 29,
                    type = "description",
                    name = "",
                },
                tblWarlock_3_UseHavoc = {
		            order = 30,
		            type = "toggle",
		            name = "Havoc",
                    desc = "Use Havoc when in combat with at least 2 enemeies.",
                    set = function(info, value) ccRS.Warlock_3_UseHavoc = value end,
                    get = function(info) return ccRS.Warlock_3_UseHavoc end,
	            },
                tblWarlock_3_BlankSpace39 = {
                    order = 39,
                    type = "description",
                    name = "",
                },
                tblWarlock_3_EmberTap = {
		            order = 40,
		            type = "toggle",
		            name = "Ember Tap",
                    desc = "Use Ember Tap when you reach a certain percentage of health.",
                    set = function(info, value) ccRS.Warlock_3_UseEmberTap = value end,
                    get = function(info) return ccRS.Warlock_3_UseEmberTap end,
	            },
                tblWarlock_3_EmberTapHP = {
                    order = 41,
                    type = "input",
                    name = "Health Percent",
                    desc = "What health percent to use Ember Tap?",
                    set = function(info, value) ccRS.Warlock_3_EmberTapHP = tonumber(value) end,
                    get = function(info) return tostring(ccRS.Warlock_3_EmberTapHP) end,
                },
                tblWarlock_3_UseTwilightWard = {
		            order = 51,
		            type = "toggle",
		            name = "Twilight Ward",
                    desc = "Use Twilight Ward when any enemy is targeting you.",
                    set = function(info, value) ccRS.Warlock_3_UseTwilightWard = value end,
                    get = function(info) return ccRS.Warlock_3_UseTwilightWard end,
	            },
                tblWarlock_3_UseUnendingResolve = {
		            order = 52,
		            type = "toggle",
		            name = "Unending Resolve",
                    desc = "Use Unending Resolve when any enemy is targeting you.",
                    set = function(info, value) ccRS.Warlock_3_UseUnendingResolve = value end,
                    get = function(info) return ccRS.Warlock_3_UseUnendingResolve end,
	            },

                tblWarlock_3_TalentsHeader = {
                    order = 1000,
                    type = "header",
                    name = "Talents",
                },
                tblWarlock_3_DarkRegeneration = {
		            order = 1001,
		            type = "toggle",
		            name = "Dark Regeneration",
                    desc = "Use Dark Regeneration when you reach a certain percentage of health.",
                    set = function(info, value) ccRS.Warlock_3_DarkRegeneration = value end,
                    get = function(info) return ccRS.Warlock_3_DarkRegeneration end,
	            },
                tblWarlock_3_DarkRegenerationHP = {
                    order = 1002,
                    type = "input",
                    name = "Health Percent",
                    desc = "What health percent to use Dark Regeneration?",
                    set = function(info, value) ccRS.Warlock_3_DarkRegenerationHP = tonumber(value) end,
                    get = function(info) return tostring(ccRS.Warlock_3_DarkRegenerationHP) end,
                },
                tblWarlock_3_Demonic_Breath = {
		            order = 1100,
		            type = "toggle",
		            name = "Demonic Breath",
                    desc = "Use Demonic Breath when surrounded by so many enemies.",
                    set = function(info, value) ccRS.Warlock_3_UseDemonicBreath = value end,
                    get = function(info) return ccRS.Warlock_3_UseDemonicBreath end,
	            },
                tblWarlock_3_DemonicBreathCount = {
                    order = 1110,
                    type = "input",
                    name = "Hostile Count",
                    desc = "How many enemies near you to use Demonic Breath?",
                    set = function(info, value) ccRS.Warlock_3_DemonicBreathCount = tonumber(value) end,
                    get = function(info) return tostring(ccRS.Warlock_3_DemonicBreathCount) end,
                },
                tblWarlock_3_MortalCoil = {
		            order = 1200,
		            type = "toggle",
		            name = "Mortal Coil",
                    desc = "Use Mortal Coil when you reach a certain percentage of health.",
                    set = function(info, value) ccRS.Warlock_3_UseMortalCoil = value end,
                    get = function(info) return ccRS.Warlock_3_UseMortalCoil end,
	            },
                tblWarlock_3_MortalCoilHP = {
                    order = 1201,
                    type = "input",
                    name = "Health Percent",
                    desc = "What health percent to use Mortal Coil?",
                    set = function(info, value) ccRS.Warlock_3_MortalCoilHP = tonumber(value) end,
                    get = function(info) return tostring(ccRS.Warlock_3_MortalCoilHP) end,
                },
                tblWarlock_3_Shadowfury = {
		            order = 1300,
		            type = "toggle",
		            name = "Shadowfury",
                    desc = "Use Shadowfury when a group of enemies is together.",
                    set = function(info, value) ccRS.Warlock_3_UseShadowfury = value end,
                    get = function(info) return ccRS.Warlock_3_UseShadowfury end,
	            },
                tblWarlock_3_ShadowfuryCount = {
                    order = 1301,
                    type = "input",
                    name = "Hostile Count",
                    desc = "How many enemies around a target to use Shadowfury?",
                    set = function(info, value) ccRS.Warlock_3_ShadowfuryCount = tonumber(value) end,
                    get = function(info) return tostring(ccRS.Warlock_3_ShadowfuryCount) end,
                },

            },
        },
		tblWarlock_Abilities = {
            name = "Abilities",
            type = "group",
            childGroups = "tree",
            order = 4,
            args = {
            },
        },
    },
}